# Use the official Java 17 base image
#FROM adoptopenjdk:17-jdk-hotspot
FROM openjdk:17-oracle

# Set environment variables
ENV APP_HOME=/app \
    JAVA_OPTS=""

# Set the working directory
WORKDIR $APP_HOME

# Copy the application files to the container
COPY /pcc-restapi/target/pcc-restapi-1.0-SNAPSHOT.jar .

# Set the entrypoint command
ENTRYPOINT ["java", "-jar", "pcc-restapi-1.0-SNAPSHOT.jar"]